#自行车
class Bicycle:
    def run(self,km):
        print(f"骑行了{km} km")

class Ebicycle(Bicycle):
    def __init__(self,battery):
        self.battery_level = battery
    def fill_charge(self,vol):
        self.battery_level += vol
    def run(self,km):
       miles = km-self.battery_level*10
       if miles > 0:
           print("电不够用")
           print(f"骑行了{self.battery_level*10}")
           print(f"脚蹬了{miles}")
           super().run(miles)
       else:
           print("电够用")
           print(f"骑行了{km}")

b1=Ebicycle(60)
print(b1.run(900))










